﻿using System;
using System.Collections.Generic;
using System.Web.Configuration;
using System.Configuration;
using System.Text;

namespace DacSanMienTayOBJ
{
    public class WebConfig
    {
        public static string USER_CONNECT_STRING = "USER_CONNECT_STRING";
        public static string ADMIN_CONNECT_STRING = "ADMIN_CONNECT_STRING";

        public static void loadWebConfig()
        {
           
            if (USER_CONNECT_STRING != null)
            {
                try
                {
                    USER_CONNECT_STRING = ConfigurationManager.ConnectionStrings[USER_CONNECT_STRING].ConnectionString;
                }
                catch
                {

                }
            }
           
            if (ADMIN_CONNECT_STRING != null)
            {
                try
                {
                    ADMIN_CONNECT_STRING = ConfigurationManager.ConnectionStrings[ADMIN_CONNECT_STRING].ConnectionString;
                }
                catch
                {

                }

            }
        }
    }
}
